<?php

use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;

class CreateStoreServiceSpeechcraftsTable extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        Schema::create('store_service_speechcrafts', function (Blueprint $table) {
            $table->id()->comment('客服话术');
            $table->integer('service_id')->comment('客服ID')->index();
            $table->integer('mer_id')->comment('商户id')->index();
            $table->integer('category_id')->comment('分类id');
            $table->integer('sort')->comment('排序');
            $table->string('title',100)->comment('话术标题');
            $table->string('content')->comment('话术内容');
            $table->softDeletes();
            $table->timestamps();
        });
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        Schema::dropIfExists('store_service_speechcrafts');
    }
}
